package oop多态作业;

public class Rhomboid extends  Graph {
    public Rhomboid(int length, int width) {
        super(length, width);
        this.width=width;
        this.length=length;
    }

    public  void area(){
        System.out.print(
                "此平行四边的面积为"
        );
        System.out.print(super.getWidth()*super.getLength()+"\t");
    }
    public void perimeter(){
        System.out.print("此平行四边的周长为");
        System.out.println((super.getWidth()+super.getLength())*2);
    }
}
